package com.Artificialintelligence.common.utils;

import me.zhyd.oauth.config.AuthConfig;
import me.zhyd.oauth.request.AuthAlipayRequest;
import me.zhyd.oauth.request.AuthGiteeRequest;
import me.zhyd.oauth.request.AuthQqRequest;
import me.zhyd.oauth.request.AuthRequest;

public class AuthRequestUtil {

    /**
     * 获取授权Request
     * 码云
     * @return AuthRequestUtil
     */
    public static AuthRequest getAuthRequest() {
        return new AuthGiteeRequest(AuthConfig.builder()
                //gitee中的id
                .clientId("38bbd3ef0b01156d56da88c39fb7b3ef743d93018886153d066e29be2b7a1404")
                //gitee中的密钥
                .clientSecret("5f29ba22380835f8d23875d4d6a63b4ea87683f6fa08c6a512f7d43f9785b950")
                //在gitee中申请的回调地址
                .redirectUri("http://101.43.53.48:39275/callback")
                .build());
    }

    /**
     * 获取授权Request
     * 支付宝
     * @return AuthAlipayRequestUtil
     */
    public static AuthRequest getAuthAlipayRequest() {
        return new AuthAlipayRequest(AuthConfig.builder()
                .clientId("2021001186696867")
                .clientSecret("MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDxl9wgGJhv3MDYti9n/5A089vAWZP3v5G/jCywoQr4wP3fHSXwuNDb4+6wTYF2kVr52z0vBzndhpq+jdJthivNf9904RgevB5/VNGq7lSzONDVEt/a7tS8wrnYNXmQ1VK0slKzU0eiYDM38CoRX6RCD9eYiZxK5b8M7qkMmFnGtI1jjIT24ZmhrFNb9iEDx39cNw8bty2c3fcEeL0puiPVlqvKmjsCP0ys034VxlRzPk/+B4Os+QTwWTNLRXvw7/ZTAVJA4yX8vttnSewRuLr6PUl36UiMb+I1nr5/FlEG6ByPXtZzKZEmWGPIsWL904gLx3R2G63e8uFJod/kLIgHAgMBAAECggEAcmvI/o6Hi9tSnpDSrP+2Dc49EsGaOelKHx1FgTYUmzHUSxpkALmXeb1fK7LZkQ1QuCtks+RJPKjmmz9SHTtBfaeFbra5FL1l+Ep0ru8HwIY1KeUxjmA0812KZWMWO0k9TYVzc6kKsV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AGgFdj8UNe4WKA=")
                .alipayPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4P3ZzsGix1Ih5NPhQXmh6JYb5UfhZXHvLtUIfoOpli0A3GRtNhVcMt508pqALaf57XyNKLuDGvDGaUx9AXFaxb199Ml4P3fpxnna/c4AOIXuNKf0oW+g/2mnpu9NLbqoKTy50r/LTrefDPNsP//7deqBfIkJeUXXPfyUsJ6CiuOh3BOULPEd0bQ/qd7gSwgF7Z1f28svB1zluLDTPYy3dD0jRlfC/99FDryUEapyRzbT8ebcTmOhnMshbmr4rf3Spo+vPl7FEJuZSAKi0m6bdwbhDvmJtH0INT+PT6YCCWj4roIBe0BJ8r/T3TRb35e2Zl11ERXuVnMNjtnkURtY/wIDAQAB")
                .redirectUri("http://101.43.53.48:39275/alicallback")
                .build());
    }

    /**
     * 获取授权Request
     * qq
     * @return AuthqqpayRequestUtil
     */
    public static AuthRequest getAuthQqRequest() {
        return new AuthQqRequest(AuthConfig.builder()
                .clientId("101991516")
                .clientSecret("2f74172055fa3512269f975df3947734")
                .redirectUri("http://www.yunzhimuo.com/qqLogin")
                .build());
    }


}
